package com.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName OrderController
 * @Description TODO
 * @Author: XMK
 * @Date: 2020/4/16 11:31
 * @Version: 1.0
 */
@RestController
//@RequestMapping("/order")
public class OrderController {
    @GetMapping("/order")
    public String index() {
        return "ok";
    }
    @GetMapping("/test")
    public String test() {
        return "ok test";
    }

    @GetMapping("/selectOrderById/{orderId}")
    public String selectOrderById(@PathVariable String orderId) {
        return "ok,,orderId = " + orderId;
    }

}
